package com.iemp.exception;

import com.iemp.exception.entity.base.AbstractStateException;
import com.iemp.result.JsonResult;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@FunctionalInterface
public interface AbstractStateExceptionHandler {
    @ExceptionHandler(AbstractStateException.class)
    @ResponseBody
    AbstractStateException exceptionWithState(AbstractStateException exception);
}
